iPhone and iPad App 24-Hour Trainer by Abhishek Mishra & Gene Backlin

iPhone and iPad App 24-Hour Trainer by Abhishek Mishra & Gene Backlin

Author:Abhishek Mishra & Gene Backlin
Language: eng
Format: epub
Publisher: Wiley Publishing, Inc.
Published: 2012-04-02T16:00:00+00:00


Opening an Existing Document

To open an existing document, allocate and initialize an instance of your UIDocument subclass and call openWithCompletionHandler on the instance. For example, you could open a file called phoneNumbers.txt from iCloud using the following snippet:

NSURL *containerURL = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil]; NSURL *documentURL = [[containerURL URLByAppendingPathComponent:@"Documents"] URLByAppendingPathComponent:@"phoneNumber.txt"]; CloudTestDocument* cloudDocument = [[CloudTestDocument alloc] initWithFileURL:documentURL]; [self.cloudDocument openWithCompletionHandler:^(BOOL success) if (success) { // cloud document opened successfully! } }];



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.